﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGiRenderSettingsTraitsData : IDisposable
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGiRenderSettingsTraitsData(IntPtr cPtr, bool cMemoryOwn)
		{
			this.swigCMemOwn = cMemoryOwn;
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGiRenderSettingsTraitsData obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGiRenderSettingsTraitsData()
		{
			this.Dispose();
		}

		public virtual void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGiRenderSettingsTraitsData(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
		}

		public OdGiRenderSettingsTraitsData() : this(GlobalsPINVOKE.new_OdGiRenderSettingsTraitsData(), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setMaterialEnabled(bool enabled)
		{
			GlobalsPINVOKE.OdGiRenderSettingsTraitsData_setMaterialEnabled(this.swigCPtr, enabled);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool materialEnabled()
		{
			bool result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_materialEnabled(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setTextureSampling(bool enabled)
		{
			GlobalsPINVOKE.OdGiRenderSettingsTraitsData_setTextureSampling(this.swigCPtr, enabled);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool textureSampling()
		{
			bool result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_textureSampling(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setBackFacesEnabled(bool enabled)
		{
			GlobalsPINVOKE.OdGiRenderSettingsTraitsData_setBackFacesEnabled(this.swigCPtr, enabled);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool backFacesEnabled()
		{
			bool result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_backFacesEnabled(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setShadowsEnabled(bool enabled)
		{
			GlobalsPINVOKE.OdGiRenderSettingsTraitsData_setShadowsEnabled(this.swigCPtr, enabled);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool shadowsEnabled()
		{
			bool result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_shadowsEnabled(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setDiagnosticBackgroundEnabled(bool enabled)
		{
			GlobalsPINVOKE.OdGiRenderSettingsTraitsData_setDiagnosticBackgroundEnabled(this.swigCPtr, enabled);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool diagnosticBackgroundEnabled()
		{
			bool result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_diagnosticBackgroundEnabled(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setModelScaleFactor(double scaleFactor)
		{
			GlobalsPINVOKE.OdGiRenderSettingsTraitsData_setModelScaleFactor(this.swigCPtr, scaleFactor);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double modelScaleFactor()
		{
			double result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_modelScaleFactor(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsEqual(OdGiRenderSettingsTraitsData data2)
		{
			bool result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_IsEqual(this.swigCPtr, OdGiRenderSettingsTraitsData.getCPtr(data2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsNotEqual(OdGiRenderSettingsTraitsData data2)
		{
			bool result = GlobalsPINVOKE.OdGiRenderSettingsTraitsData_IsNotEqual(this.swigCPtr, OdGiRenderSettingsTraitsData.getCPtr(data2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		protected bool swigCMemOwn;
	}
}
